<?php
/**
 * Class Infrastructure_Configuration
 */
class Infrastructure_Configuration
{
    /**
     * @return string
     */
    public function getDatabaseUser()
    {
        return $this->data['common']['dbuser'];
    }

    /**
     * @return string
     */
    public function getDatabasePassword()
    {
        return $this->data['common']['dbpass'];
    }

    /**
     * @return string
     */
    public function getDatabaseName()
    {
        return $this->data['common']['dbname'];
    }

    /**
     * @return string
     */
    public function getDSN()
    {
        return $this->data['common']['dsn'];
    }

    /**
     * @return string
     */
    public function getDatabaseTimeZone()
    {
        return $this->data['common']['dbtimezone'];
    }

    /**
     * @param array $data
     */
    public function __construct(array $data)
    {
        $this->data = $data;
    }
}
